package com.xbai.creation.abstractfactory.factory;

import com.xbai.creation.abstractfactory.product.Button;
import com.xbai.creation.abstractfactory.product.Checkbox;
import com.xbai.creation.abstractfactory.product.MacOSButton;
import com.xbai.creation.abstractfactory.product.MacOSCheckbox;

/**
 * 每个具体工厂都扩展了基础工厂，并负责创建单一品种的产品
 */
public class MacOSFactory implements GUIFactory {

    @Override
    public Button createButton() {
        return new MacOSButton();
    }

    @Override
    public Checkbox createCheckbox() {
        return new MacOSCheckbox();
    }
}